{% include 2017/meta-vars.html page=page %}
<meta charset='utf-8'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<link href='{{ base }}/assets/favicon.png' rel='shortcut icon'>
{% capture canonical %}{{ site.url }}{{site.baseurl}}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
<meta content='{{ canonical }}' name='app:pageurl'>

{% if meta_title %}
  <title>{{ meta_title | escape }}</title>
  <meta content='{{ meta_title | escape }}' property='og:title'>
  <meta content='{{ meta_title | escape }}' property='twitter:title'>
  <meta content='{{ page.og_type | default: "article" | escape }}' property='og:type'>
{% endif %}

{% if meta_image %}
  <meta content='{{ meta_image | escape }}' property='og:image'>
  <meta content='{{ meta_image | escape }}' property='twitter:image'>
  <meta content='900' property='og:image:width'>
  <meta content='471' property='og:image:height'>
{% endif %}

{% if meta_description %}
  <meta content="{{ meta_description | escape }}" name="description">
  <meta content="{{ meta_description | escape }}" property="og:description">
  <meta content="{{ meta_description | escape }}" property="twitter:description">
{% endif %}

<link rel="canonical" href="{{ canonical }}">
<meta name="og:url" content="{{ canonical }}">
{% if page.url == '/' %}
  <link rel="prefetch" href="{{ site.url | escape }}">
  <link rel="prerender" href="{{ site.url | escape }}">
{% endif %}

{% if page.author %}
{% for author in site.authors | where: "name", page.author %}
  <meta content='{{ author.name }}' name='author'>
  {% if author.ogp %}
  <meta content='{{ author.ogp }}' property='article:author'>
  {% endif %}
{% endfor %}
{% endif %}

{% if site.title %}
  <meta content='{{ site.title | escape }}' property='og:site_name'>
{% endif %}

{% if site.facebook.app_id %}
  <meta content='{{ site.facebook.app_id | escape }}' property='fb:app_id'>
{% endif %}

{% if site.facebook.admin %}
  <meta content='{{ site.facebook.admin | escape }}' property='fb:admins'>
{% endif %}

{% if page.date %}
  <meta content='{{ page.date | date: "%Y-%m-%d" }}' property='article:published_date'>
{% endif %}

{% if page.category %}
  <meta content='{{ page.category | escape }}' property='article:section'>
{% endif %}

{% if page.tags %}
{% for tag in page.tags %}
  <meta content='{{ tag | escape }}' property='article:tag'>
{% endfor %}
{% endif %}

{% if site.data.google_analytics.enabled %}

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-71174418-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
      (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: "ca-pub-2572770204602497",
          enable_page_level_ads: true
      });
</script>
<script async custom-element="amp-auto-ads"
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
</script>


{% endif %}

{% if depth %}
  <meta property='page:depth' content='{{depth}}'>
{% endif %}

<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
<script>(function(H){H.className=H.className.replace(/\bNoJs\b/,'WithJs')})(document.documentElement)</script>
